package com.lcf.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcf.system.dto.userRole.SysUserRoleDTO;
import com.lcf.system.entity.SysUserRole;
import com.lcf.system.vo.userRole.SysUserRoleVO;

import java.util.List;

/**
 * 用户与角色(SysUserRole)表服务接口
 *
 * @author lcf
 * @since 2025-02-25 12:30:27
 */
public interface SysUserRoleService extends IService<SysUserRole> {
    /**
     * 设置用户角色
     */
    void setUserRole(long userId, SysUserRoleDTO sysUserRole);

    /**
     * 获取用户角色
     */
    List<SysUserRoleVO> getUserRole(long userId);
}

